void main() {
    Scanner sc = new Scanner(System.in);
    System.out.println("请输入月份数字（1~12）");
    String month = sc.next();
    switch(month) {
        case "1":
        case "2":
        case "3":
            System.out.println("第一季度");
            break;
        case "4":
        case "5":
        case "6":
            System.out.println("第二季度");
            break;
        case "7":
        case "8":
        case "9":
            System.out.println("第三季度");
            break;
        case "10":
        case "11":
        case "12":
            System.out.println("第四季度");
            break;
        default:
            System.out.println("无效月份");
            break;
    }
}